{% extends "layout" %}

{% block main %}
{% switch error.getcode %}

    {% case 401 %}
    <h2>Identification required</h2>
    <p>This section requires a password.</p>
    {% endcase %}

    {% case 403 %}
    <h2>Forbidden </h2>
    <p>{{ error.getmessage }}</p>
    {% endcase %}

    {% default %}
<h2>{{ error.getmessage }} ({{ error|get_class }})</h2>
<dl>{% for trace in error.gettrace %}
    <dt>{{ trace.class }}{{ trace.type }}{{ trace.function }}</dt>{% for arg in trace.args %}
    <dd>{{ arg }}</dd>{% endfor %}
    <dd>{{ trace.file }} line {{ trace.line }}</dd>{% endfor %}
</dl>
    {% enddefault %}
{% endswitch %}
{% endblock %}
